package com.zk.shop.util;

/**
 * @version 1.0
 * @ClassName PageUtil
 * @Description TODO
 * @Author 关轶阳
 * @Date 2019/10/8 0008 上午 10:10
 */
public class PageUtil {
    //每页显示的条数
    public static final int PAGE_SIZE = 24;

    //获取总页数
    public static int getTotalPage(int count, int PageSize) {
        return count % PageSize == 0 ? count / PageSize : ((count / PageSize) + 1);
    }
}
